<?php
namespace app\api\validate;
use think\Validate;

class Login extends Validate{
	public $message=[
    	'mobile.require'=>'请选择省',
    	'mobile.mobile'=>'手机号码不正确',
    	'code.require'=>'请上传验证码',
    	'code.length'=>'验证码长度不正确',
    ];
    
   	public $rule=[
	   	'province_id'=>'require|mobile',
	   	'code'=>'require|length:6,6'
   	];
   	
    public $scene=[
    	'getCode'=>['mobile'],
    	'login'=>['mobile','code'],
    ]; 
    
}
?>